fenjuly / toggleexpandlayout Goto Github PK
View Code? Open in Web Editor NEWA togglelayout that can be used in setting interface
License: MIT License
A togglelayout that can be used in setting interface
License: MIT License
when i use edit text with wrap content height in drop down layout it is not working !?
`
<com.fenjuly.mylibrary.ToggleExpandLayout
android:id="@+id/toogleLayout1"
android:layout_marginTop="15dp"
android:layout_marginLeft="15dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<TextView
android:id="@+id/menu"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginLeft="8dp"
android:text="Automatic date and time"
/>
<TextView
android:layout_below="@+id/menu"
android:layout_marginTop="4dp"
android:layout_marginLeft="8dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Use network provide time"
android:textColor="#cccccc"/>
<com.kyleduo.switchbutton.SwitchButton
android:id="@+id/switch_button"
android:layout_alignParentRight="true"
android:layout_marginRight="10dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="16dp"/>
</RelativeLayout>
</com.fenjuly.mylibrary.ToggleExpandLayout>
</com.fenjuly.mylibrary.DropDownLayout>
`
`
FATAL EXCEPTION: main
Process: com.artursworld.nccn, PID: 2427
android.view.InflateException: Binary XML file line #37: Binary XML file line #37: Error inflating class com.fenjuly.mylibrary.DropDownLayout
Caused by: android.view.InflateException: Binary XML file line #37: Error inflating class com.fenjuly.mylibrary.DropDownLayout
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.fenjuly.mylibrary.DropDownLayout" on path: DexPathList[[zip file "/data/app/com.artursworld.nccn-2/base.apk"],nativeLibraryDirectories=[/data/app/com.artursworld.nccn-2/lib/x86, /system/lib, /vendor/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.view.LayoutInflater.createView(LayoutInflater.java:609)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:787)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:858)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
at android.view.LayoutInflater.inflate(LayoutInflater.java:377)
at com.afollestad.materialdialogs.MaterialDialog$Builder.customView(MaterialDialog.java:1068)
at com.artursworld.nccn.view.user.UserStartConfiguration.showConfigurationDialog(UserStartConfiguration.java:29)
at com.artursworld.nccn.view.StartMenu.onNavigationItemSelected(StartMenu.java:55)
at android.support.design.widget.NavigationView$1.onMenuItemSelected(NavigationView.java:151)
at android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:810)
at android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:957)
at android.support.design.internal.NavigationMenuPresenter$1.onClick(NavigationMenuPresenter.java:318)
at android.view.View.performClick(View.java:5610)
at android.view.View$PerformClick.run(View.java:22260)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
`
Adding library to dependency fails with this error message
How can we toggle the layout with the help of an image button?
can we do that? if yes then how?
thanks ...
complete UI is not expending. only the last one is expending. expended view of the first and second is going below the front layout.
When I add the DropDownLayout in scrollview the hidden layout clips at bottom on expansion.
The clipped size is same as the header size(visible view).
Hello @fenjuly
Is there any way to slow down animation speed?
你github上的实例与你的dependencies是不相符的,并且实例存有一些bug,希望您能更新出最新版本,不胜感激
Demo app is crashing log is here
Process: com.fenjuly.toggleexpandlayout, PID: 4599
java.lang.NoSuchMethodError: android.view.View.setElevation
at com.fenjuly.toggleexpandlayout.MainActivity$1.onOpen(MainActivity.java:36)
at com.fenjuly.mylibrary.ToggleExpandLayout$1.onAnimationEnd(ToggleExpandLayout.java:93)
Error:(48, 13) Failed to resolve: com.github.fenjuly:ToggleExpandLayout:9de3036
Show in File Show in Project Structure dialog
my Project level gradle:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
classpath 'com.google.gms:google-services:1.4.0-beta3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven { url "https://jitpack.io" }
jcenter()
mavenCentral()
}
}
My modul level gradle:
dependencies {
compile 'com.github.fenjuly:ToggleExpandLayout:774e497692'
}
I'm using com.fenjuly.mylibrary.DropDownLayout which contains 10 ToggleExpandLayout. It is not scrolling. How can I enable scrolling so that I can use more number of ToggleExpandLayout in the activity.
the 774e497(com.github.fenjuly:ToggleExpandLayout:774e497692),when i build,find something lost.
the class(com.fenjuly.mylibrary.DropDownLayout) never find.
The minimum api level to use these lib is API - 16 . Can you downgrade that at least to api 14
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.