Code Monkey home page Code Monkey logo

synth-android's People

Contributors

nikhilpanju avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

synth-android's Issues

ElevatedDrawable not working even after setting clipChildren = false

<androidx.cardview.widget.CardView
    android:clipToPadding="false"
    android:layout_margin="20dp"
    android:id="@+id/kindle_parent_card_detail"
    android:background="@drawable/kindle_card"
    app:cardBackgroundColor="@color/cool_gray"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:theme="@style/ThemeOverlay.Neumorph.Dark"
    style="@style/Widget.Neumorph.CardView"
    android:clipChildren="false">


        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:layout_margin="30dp"
            android:elevation="50dp"
            android:clipChildren="false">
        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textSize="15sp"
            android:layout_marginHorizontal="20dp"
            android:fontFamily="@font/poppins"
            android:textColor="@color/white"
            android:id="@+id/highlight_text"/>
        <androidx.cardview.widget.CardView
            android:layout_width="wrap_content"
            android:layout_height="20dp"
            app:cardCornerRadius="10dp"
            android:paddingHorizontal="10dp"
            android:layout_centerHorizontal="true"
            app:cardBackgroundColor="@color/black"
            android:layout_below="@id/highlight_text"
            android:clipChildren="false">
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="20dp"
                android:id="@+id/name_of_kindle"
                android:textSize="12sp"
                android:textColor="@color/lime"
                android:text="A General Introduction to Psychoanalysis"/>
        </androidx.cardview.widget.CardView>
        </LinearLayout>
</androidx.cardview.widget.CardView>

Shadow in buttons.

I am using synth in one of my projects.
I have 2 problems while implementing the synth library.
image

  1. As you can see in the image above, around the buttons, there is some shadows. How can I remove them?
  2. I was trying to remove the black color border around the cancel button, but was not able to remove that. How can I remove it?

Adding child view to club.cred.synth.views.ElevatedView

Hi ,

I tried to add child view to ElevatedView and PitView but getting below error .

club.cred.synth.views.ElevatedView cannot be cast to android.view.ViewGroup
    Caused by: java.lang.ClassCastException: club.cred.synth.views.ElevatedView cannot be cast to android.view.ViewGroup****

How to add views to Elevated and PitView

setIconPitRadius() is not working

I want to change app:neuButtonDrawablePitRadius through code, so I use setIconPitRadius(), but it's not working. Value of attribute is changing - verified using getIconPitRadius()
but nothing is changing in UI

Synth not found

failed to resolve implementation 'club.cred.android:synth:1.0.0'

How to give bottom depth color?

Hello sir/mam,

I am using a synth for one of my projects, but the synth is not looking good in the light mode because the background is white. When I compare then found that in the sample synth app bottom shadow color is also there for pitview so could you please help me how I can change the pitview bottom shadow color?

I can change the top color using the pitColor attribute.

How to use ElevatedView??

I want to use ElevatedView on which I want to set Imageview and Textview.

How can I set the above on a ElevatedView?

Blur Effect

I like to make this kind of Button.
Capture

But I get the blur effect with app:neuButtonType="elevated_flat". As you can see below image
202998535_791637381542785_719696923984093585_n

Could you please guide me?

Change Shadow Color

I just want to know is there any way to change the color of Shadow in Elevated/Pit Views or in SynthButtons /SynthImageButtons????

Please reply this issue.....

Issue with dependencies

Even after syncing gradle file did not allow me to use components
implementation 'club.cred.android:synth:1.0.0'

I tried using components on the layout file but it was showing reference not found error.
eg
club.cred.synth.views.SynthButton

issue with dependencies

Even after syncing gradle file did not allow me to use components
implementation 'club.cred.android:synth:1.0.0'

I tried using components on the layout file but it was showing reference not found error.
eg
club.cred.synth.views.SynthButton

ElevatedView background colour

Issue

ElevatedView

The issue I'm facing is when i try to set a background colour to ElevatedView, somehow it gets the default color predefined SynthUtils.defaultBaseColor in SynthUtils. I'm trying to set the background dynamic based on device theme.

Note: The PitView background doesn't have this issue.

Layout

This is a part of my layout which contains the ElevatedView:

<androidx.constraintlayout.widget.ConstraintLayout  
  android:id="@+id/relativeHeader"  
  android:layout_width="0dp"  
  android:layout_height="wrap_content"  
  android:layout_marginTop="8dp"  
  android:clipChildren="false"  
  app:layout_constraintEnd_toEndOf="parent"  
  app:layout_constraintStart_toStartOf="parent"  
  app:layout_constraintTop_toTopOf="parent">  
  
 <club.cred.synth.views.ElevatedView  
  android:id="@+id/headerPitView"  
  android:layout_width="0dp"  
  android:layout_height="0dp"  
  android:layout_margin="18dp"  
  app:layout_constraintBottom_toBottomOf="parent"  
  app:layout_constraintEnd_toEndOf="parent"  
  app:layout_constraintStart_toStartOf="parent"  
  app:layout_constraintTop_toTopOf="parent"  
  app:neuCornerRadius="20dp"  
  app:pitColor="?attr/lightBackgroundColor" />

..................

I'm using this dependency in build.gradle file:

dependencies {  
  implementation 'club.cred.android:synth:1.0.0'  
}  

โ€‹

Expectation

  • applying background color other then the default one for ElevatedView

App style changed after adding this library

I have added this library in my app which has a black background but it's changed the background colours of views (ex. Textinputlayout) and sizes of a button. Please help me to resolve this issue.
This is the theme used in the app

` <style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/dark_selected</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/selected</item>
        <item name="android:popupMenuStyle">@style/PopupMenu</item>
        <item name="android:itemBackground">@color/unselected</item>
        <item name="android:dropDownListViewStyle">@style/PopupMenu</item>
        <item name="android:textSize">17dp</item>
    </style>`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.