Giter Site home page Giter Site logo

oneui-design's Introduction



In this repository you'll find:

Any form of contribution, suggestions, bug report or feature request will be welcome.

OneUI Design Module

The "oneui-design" library (not to be confused with the old OneUI Design Library) consists of custom components made to help you implement One UI in your apps with ease, if you're actually interested on the base libraries please take a look at oneui-core. Check our documentation page to learn more about this module.

Usage

  • Make sure your Android project has oneui-core libraries implemented;

  • Add the design library in your dependencies:

dependencies {
    // ...
    implementation 'io.github.oneuiproject:design:<version>'
}
  • Apply the main theme in your AndroidManifest file:
<application
    ...
    android:theme="@style/OneUITheme" >
    ...
</application>

OneUI Sample App

The One UI Sample app has been made to showcase the components from both our oneui-core libraries and oneui-design module. You can download the latest apk here, for the older versions of the app please check the deprecated OneUI Design Library repository.

Features

  • Supports Android 6.0 (api 23) and above;
  • Supports both Samsung and non-Samsung devices;
  • One UI 4 Color Theme support;
  • Example UI for the following components:
    • AppCompat (Base widgets/theme);
    • Material Components (Tabs, Bottom navigation);
    • Date/Time/Color pickers;
    • ListViews (AppPicker, Contacts, Icons);
    • Preferences;
    • Swipe to Refresh;

More info

Special thanks

  • Google for their Jetpack and Material Components libraries.
  • Samsung for their awesome OneUI Design. :)
  • All the current and future contributors and issue reporters. :D

oneui-design's People

Contributors

lemkinator avatar salvogiangri avatar tribalfs avatar yanndroid 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

oneui-design's Issues

Change Application Accent Color in Runtime

Hi, sorry for more questions 😁
i am trying to change application accent color, i can read color from ColorPicker and Save it in Prefrences. its OK.
but i am using this codes in MainActivity for changing application accent color before onCreate method.


val sharedPreferences = getSharedPreferences("ThemeColor", Context.MODE_PRIVATE)
        val stringColor = sharedPreferences.getString("color", "0381fe")

// stringColor output is: e100e1
        setTheme(resources.getIdentifier("Color_$stringColor", "style", packageName))

i can see that stringColor is changed and set to new color but after using setTheme nothing happened and i cant see new color.

where is wrong? i am copied this codes from yours old library.

How to update ProgressDialog?

i want to update ProgressDialog Progress, this is my codes, where is wrong? progress dialog is not update and stay in 0

private var job: Job = Job()
    override val coroutineContext: CoroutineContext
        get() = IO + job


fun getCirculars(){
        swipRefresh.isRefreshing = true
        itemsData.clear()

        val dialog = ProgressDialog(mContext)
        dialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL)
        dialog.setIndeterminate(true)
        dialog.setCancelable(false)
        dialog.setCanceledOnTouchOutside(false)
        dialog.max = 100
        dialog.isIndeterminate = true
        dialog.show()

        launch {
            val operation = async {
                val doc: Document = Jsoup.connect(url)
                    .timeout(0)
                    .maxBodySize(0)
                    .ignoreHttpErrors(true)
                    .sslSocketFactory(CommonHelper.trustServer())
                    .get()

                val table: Elements = doc.select("table[class=\"table table-striped table-hover\"]")
                for (myTable in table) {
                    val rows: Elements = myTable.select("tr")
                    withContext(Dispatchers.Main){
                        dialog.isIndeterminate = false
                    }

                    for (i in 1 until rows.size) {
                        withContext(Dispatchers.Main){
                            dialog.progress = (i / rows.size) * 100
                        }
                    }
                }
            }.await()
            withContext(Dispatchers.Main) {
                // update UI
                dialog.dismiss()
                swipRefresh.isRefreshing = false
            }
        }
    }

Untitled

About title of PrefrenceFragment in DrawerLayout

As title, I have setup a NavigationView, with 4 PreferenceFragmentCompat as 4 fragments
All is working flawlessly until I realized that all 4 fragments have the same title
Removing app:title from root layout, obviously no title
Tried some stuff like
getActivity().setTitle(title);
but no luck
So, how can I add title to PreferenceFragment in DrawerLayout. Thanks !
Here is my code: MainActivity
image

Ask about TabLayout.

Do you not support TabLayout that was available in the previous version?

I am inquiring because I cannot check the oneui-design app with a sample.

Does this library support kotlin?

I would like to create an app with this library - the problem is that I switched from Java to Kotlin and the question is whether this library can work with Kotlin?
I ask because in MainActivity.java (which is very simple)

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
    }

}

I get an error during Project Rebuild:

public final class MainActivity extends androidx.appcompat.app.AppCompatActivity {
             ^
  class file for androidx.core.content.OnConfigurationChangedProvider not found

and also errors about duplicated classes from:

  • androidx.customview
  • androidx.fragment
  • androidx.viewpager
    and I just excluded them and I didn't get any error about duplicated classes, but still - Im getting error that I described above (and in attachment)
    error

AndroidManifest.xml:

android:theme="@style/OneUITheme"

build.gradle:

// Exclude Google AndroidX.
configurations.all {
    exclude group: 'androidx.appcompat', module: 'appcompat'
    exclude group: 'androidx.core', module: 'core'
    exclude group: 'androidx.customview', module: 'customview'
    exclude group: 'androidx.fragment', module: 'fragment'
    exclude group: 'androidx.viewpager', module: 'viewpager'
}

android {
    namespace 'tw.app.sonote'
    compileSdk 33

    defaultConfig {
        applicationId "tw.app.sonote"
        minSdk 23
        targetSdk 33
        versionCode 1
        versionName "1.0"

        vectorDrawables.useSupportLibrary = true
    }

    buildFeatures {
        buildConfig true
        viewBinding true
    }
}

dependencies {
    // OneUI
    implementation 'io.github.oneuiproject.sesl:appcompat:1.3.0'
    implementation 'io.github.oneuiproject.sesl:apppickerview:1.0.0'
    implementation 'io.github.oneuiproject.sesl:material:1.4.0'
    implementation 'io.github.oneuiproject.sesl:indexscroll:1.0.3'
    implementation 'io.github.oneuiproject.sesl:picker-basic:1.1.0'
    implementation 'io.github.oneuiproject.sesl:picker-color:1.0.1'
    implementation 'io.github.oneuiproject.sesl:preference:1.1.0'
    implementation 'io.github.oneuiproject.sesl:recyclerview:1.3.0'
    implementation 'io.github.oneuiproject.sesl:swiperefreshlayout:1.0.0'
    implementation 'io.github.oneuiproject:design:1.2.1'
    implementation 'io.github.oneuiproject:icons:1.0.1'

    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'

    // Airbnb
    implementation 'com.airbnb.android:lottie:5.2.0'

    // Dagger - Hilt
    implementation "com.google.dagger:hilt-android:2.44"
    kapt "com.google.dagger:hilt-android-compiler:2.44"
    kapt "androidx.hilt:hilt-compiler:1.0.0"

    // There was more libs but i deleted most of them just to find potential cause
}

Continuous onLayout loop

If we add the following log in MainActivity, we will see continuous "onLayoutChange" messages flooding the logcat.

    mBinding.getRoot().addOnLayoutChangeListener(
                    (v, left, top, right, bottom, oldLeft, oldTop, oldRight, oldBottom) ->
                            Log.d("MainActivity", "onLayoutChange")
            );

Android resource linking failed

Hello.
I am checking the usability of OneUIProject/oneui-design.

I did the test as follows.

  1. Below, the dependencies portion is annotated on build.gradle(:sample-app) and build.gradle(:lib).

    // implementation("io.github.oneuiproject.sesl:appcompat:$sesl_appcompat_version")
    // implementation("io.github.oneuiproject.sesl:material:$sesl_material_version")
    // implementation("io.github.oneuiproject.sesl:recyclerview:$sesl_recyclerview_version")

  2. I generated the aar file with the assembleRelease command for each unit module in OneUIProject/sesl.
    The aar files were then included in Sample-app, lib via the Implementation files command.

  3. Gradle sync now runs successfully.

  4. When I run the sample-app, an error occurs as below.

Please give me some advice to solve these errors. Thank you.

### Android resource linking failed
ERROR:/EX_ONEUI_SAMPLE_20220526/sample-app/build/intermediates/incremental/debug/mergeDebugResources/merged.dir/values/values.xml:6393: AAPT: error: style attribute 'attr/cardBackgroundColor (aka com.sec.sesl.tester:attr/cardBackgroundColor)' not found.

ERROR:/EX_ONEUI_SAMPLE_20220526/sample-app/build/intermediates/incremental/debug/mergeDebugResources/merged.dir/values/values.xml:6394: AAPT: error: style attribute 'attr/cardCornerRadius (aka com.sec.sesl.tester:attr/cardCornerRadius)' not found.

ERROR:/EX_ONEUI_SAMPLE_20220526/sample-app/build/intermediates/incremental/debug/mergeDebugResources/merged.dir/values/values.xml:6395: AAPT: error: style attribute 'attr/cardElevation (aka com.sec.sesl.tester:attr/cardElevation)' not found.

AppBarLayout Height

I would like to change AppBar Layout Height in oneui-design sample project.

I want to know how to handle it dynamically or XML.

change font

is it possible to change font for following elements?

<dev.oneuiproject.oneui.preference.TipsCardPreference
<dev.oneuiproject.oneui.preference.HorizontalRadioPreference
<SwitchPreferenceCompat
<SeslSwitchPreferenceScreen
<CheckBoxPreference
<EditTextPreference
<ListPreference
<DropDownPreference
<MultiSelectListPreference

mergeDebugResources issue

Hi again,
I am facing this error, And the app does not compile

Android resource linking failed
ir.mahdi.circulars.app-mergeDebugResources-32:/values/values.xml:4818: error: resource dimen/abc_dialog_min_width_major (aka com.sec.sesl.tester:dimen/abc_dialog_min_width_major) not found.
ir.mahdi.circulars.app-mergeDebugResources-32:/values/values.xml:4819: error: resource dimen/abc_dialog_min_width_minor (aka com.sec.sesl.tester:dimen/abc_dialog_min_width_minor) not found.
ir.mahdi.circulars.app-mergeDebugResources-32:/values/values.xml:4818: error: resource dimen/abc_dialog_min_width_major (aka com.sec.sesl.tester:dimen/abc_dialog_min_width_major) not found.
ir.mahdi.circulars.app-mergeDebugResources-32:/values/values.xml:4819: error: resource dimen/abc_dialog_min_width_minor (aka com.sec.sesl.tester:dimen/abc_dialog_min_width_minor) not found.
ir.mahdi.circulars.app-mergeDebugResources-32:/values/values.xml:4864: error: resource dimen/abc_dialog_min_width_major (aka com.sec.sesl.tester:dimen/abc_dialog_min_width_major) not found.
ir.mahdi.circulars.app-mergeDebugResources-32:/values/values.xml:4865: error: resource dimen/abc_dialog_min_width_minor (aka com.sec.sesl.tester:dimen/abc_dialog_min_width_minor) not found.
ir.mahdi.circulars.app-mergeDebugResources-32:/values/values.xml:4864: error: resource dimen/abc_dialog_min_width_major (aka com.sec.sesl.tester:dimen/abc_dialog_min_width_major) not found.
ir.mahdi.circulars.app-mergeDebugResources-32:/values/values.xml:4865: error: resource dimen/abc_dialog_min_width_minor (aka com.sec.sesl.tester:dimen/abc_dialog_min_width_minor) not found.
error: failed linking references.

Are my excludes correct?

configurations.all {
    exclude group: 'androidx.appcompat', module: 'appcompat'
    exclude group: 'androidx.core', module: 'core'
    exclude group: 'androidx.drawerlayout', module: 'drawerlayout'
    exclude group: 'androidx.viewpager2', module: 'viewpager2'
    exclude group: 'androidx.fragment', module: 'fragment'
    exclude group: 'androidx.customview', module: 'customview'
    exclude group: 'androidx.coordinatorlayout', module: 'coordinatorlayout'
    exclude group: 'androidx.swiperefreshlayout', module: 'swiperefreshlayout'
    exclude group: 'androidx.recyclerview', module: 'recyclerview'
    exclude group: 'com.google.android.material', module: 'material'
    exclude group: 'androidx.preference', module: 'preference'

}
dependencies {

    implementation 'androidx.core:core-ktx:1.6.0'
    implementation("androidx.annotation:annotation-experimental") { version { strictly("1.1.0") } }

    implementation 'io.github.oneuiproject.sesl:appcompat:1.3.0'
    implementation 'io.github.oneuiproject:design:1.2.2'
    implementation 'io.github.oneuiproject.sesl:material:1.4.0'
    implementation 'io.github.oneuiproject.sesl:viewpager2:1.1.0'
    implementation 'io.github.oneuiproject.sesl:swiperefreshlayout:1.0.0'
    implementation 'io.github.oneuiproject.sesl:recyclerview:1.3.0'
    implementation 'io.github.oneuiproject.sesl:preference:1.1.0'
    implementation 'io.github.oneuiproject.sesl:drawerlayout:1.0.0'
    implementation 'io.github.oneuiproject.sesl:coordinatorlayout:1.0.0'

    implementation 'com.airbnb.android:lottie:5.2.0'
    implementation 'io.github.oneuiproject:icons:1.0.1'

    implementation 'org.jsoup:jsoup:1.15.3'
    implementation 'com.afollestad.material-dialogs:core:3.3.0'
    implementation 'com.afollestad.material-dialogs:files:3.3.0'
    implementation 'io.github.inflationx:calligraphy3:3.1.1'
    implementation 'io.github.inflationx:viewpump:2.0.3'
}

About FrameLayout Margin/Padding

Hello!!

I have something to ask about the image below.
The red part is MarginTabLayout. The yellow part is Frame Layout.

In both widgets, the width and height properties are match_parent.

android:layout_width="match_parent"
android:layout_height="match_parent"

But as you can see, can you tell me why the width difference between the two widgets is?

This is an additional question.
Is there a document (e.g. wiki) that summarizes the difference between an existing androidx library and an ONEUI library?

KakaoTalk_Photo_2022-06-30-23-33-11

Sample-app Error message

I am doing various Issue Solving in the process of applying the OneUIProject library.

I am in the process of resolving [java.lang.IllegalStateException: item_layout.xml is not disclosed as @input] Issue.

In this process, when I go back to the beginning and run oneui-design, the following error message occurs. Do you happen to know why this error is occurring?

E/SeslBaseReflector: SOUND_TIME_PICKER_FAST NoSuchMethodException
java.lang.NoSuchFieldException: SOUND_TIME_PICKER_FAST
at java.lang.Class.getField(Class.java:1604)
at androidx.reflect.SeslBaseReflector.getField(SeslBaseReflector.java:205)
at androidx.reflect.media.SeslAudioManagerReflector.getField_SOUND_TIME_PICKER_SCROLL_FAST(SeslAudioManagerReflector.java:61)
at androidx.picker.widget.SeslNumberPickerSpinnerDelegate.(SeslNumberPickerSpinnerDelegate.java:521)
at androidx.picker.widget.SeslNumberPicker.(SeslNumberPicker.java:150)
at androidx.picker.widget.SeslNumberPicker.(SeslNumberPicker.java:144)
at androidx.picker.widget.SeslNumberPicker.(SeslNumberPicker.java:140)
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
at android.view.LayoutInflater.createView(LayoutInflater.java:852)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1004)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:959)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1121)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1124)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1124)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1124)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)
at android.view.LayoutInflater.inflate(LayoutInflater.java:680)
at android.view.LayoutInflater.inflate(LayoutInflater.java:532)
at dev.oneuiproject.oneuiexample.base.BaseFragment.onCreateView(BaseFragment.java:24)
at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2989)
at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:518)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:282)
at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:122)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1647)
at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3157)
at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:3101)
at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:251)
at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:473)
at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:246)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1435)
at android.app.Activity.performStart(Activity.java:8231)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3872)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2336)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8653)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
E/SeslBaseReflector: SOUND_TIME_PICKER_SLOW NoSuchMethodException
java.lang.NoSuchFieldException: SOUND_TIME_PICKER_SLOW
at java.lang.Class.getField(Class.java:1604)
at androidx.reflect.SeslBaseReflector.getField(SeslBaseReflector.java:205)
at androidx.reflect.media.SeslAudioManagerReflector.getField_SOUND_TIME_PICKER_SCROLL_SLOW(SeslAudioManagerReflector.java:76)
at androidx.picker.widget.SeslNumberPickerSpinnerDelegate.(SeslNumberPickerSpinnerDelegate.java:522)
at androidx.picker.widget.SeslNumberPicker.(SeslNumberPicker.java:150)
at androidx.picker.widget.SeslNumberPicker.(SeslNumberPicker.java:144)
at androidx.picker.widget.SeslNumberPicker.(SeslNumberPicker.java:140)
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
at android.view.LayoutInflater.createView(LayoutInflater.java:852)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1004)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:959)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1121)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1124)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1124)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1124)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)
at android.view.LayoutInflater.inflate(LayoutInflater.java:680)
at android.view.LayoutInflater.inflate(LayoutInflater.java:532)
at dev.oneuiproject.oneuiexample.base.BaseFragment.onCreateView(BaseFragment.java:24)
at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2989)
at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:518)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:282)
at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:122)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1647)
at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3157)
at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:3101)
at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:251)
at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:473)
at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:246)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1435)
at android.app.Activity.performStart(Activity.java:8231)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3872)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2336)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8653)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
E/SeslBaseReflector: setFastAudioOpenMode NoSuchMethodException
java.lang.NoSuchMethodException: com.samsung.android.media.SemSoundAssistantManager.setFastAudioOpenMode [boolean]
at java.lang.Class.getMethod(Class.java:2072)
at java.lang.Class.getDeclaredMethod(Class.java:2050)
at androidx.reflect.SeslBaseReflector.getDeclaredMethod(SeslBaseReflector.java:112)
at androidx.reflect.media.SeslSemSoundAssistantManagerReflector.setFastAudioOpenMode(SeslSemSoundAssistantManagerReflector.java:67)
at androidx.picker.widget.SeslNumberPickerSpinnerDelegate.(SeslNumberPickerSpinnerDelegate.java:523)
at androidx.picker.widget.SeslNumberPicker.(SeslNumberPicker.java:150)
at androidx.picker.widget.SeslNumberPicker.(SeslNumberPicker.java:144)
at androidx.picker.widget.SeslNumberPicker.(SeslNumberPicker.java:140)
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
at android.view.LayoutInflater.createView(LayoutInflater.java:852)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1004)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:959)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1121)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1124)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1124)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1124)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082)
at android.view.LayoutInflater.inflate(LayoutInflater.java:680)
at android.view.LayoutInflater.inflate(LayoutInflater.java:532)
at dev.oneuiproject.oneuiexample.base.BaseFragment.onCreateView(BaseFragment.java:24)
at androidx.fragment.app.Fragment.performCreateView(Fragment.java:2989)
at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:518)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:282)
at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:122)
at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1647)
at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3157)
at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:3101)
at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:251)
at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:473)
at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:246)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1435)
at android.app.Activity.performStart(Activity.java:8231)
at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3872)
at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2336)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8653)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
W/sec.sesl.teste: Accessing hidden method Landroid/view/View;->hidden_semSetDirectPenInputEnabled(Z)V (greylist, reflection, allowed)
E/SeslBaseReflector: SOUND_TIME_PICKER_FAST NoSuchMethodException

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

How to use Oneui-design?

Hi, i want to use your oneui projects but i cant! I am facing various errors and some classes are missing

missing calss:

ActivityUtils
BuildConfig

this is my build.gradle:

android {
    compileSdk 32

    defaultConfig {
        applicationId "com.sec.sesl.tester"
        minSdk 23
        targetSdk 32
        versionCode 1
        versionName "1.0"

        vectorDrawables.useSupportLibrary = true
    }

    buildFeatures {
        viewBinding true
    }
}
configurations.all {
    exclude group: 'androidx.appcompat', module: 'appcompat'
    exclude group: 'androidx.core', module: 'core'
    exclude group: 'androidx.drawerlayout', module: 'drawerlayout'
    exclude group: 'androidx.viewpager2', module: 'viewpager2'
    exclude group: 'androidx.fragment', module: 'fragment'
    exclude group: 'androidx.customview', module: 'customview'
    exclude group: 'androidx.coordinatorlayout', module: 'coordinatorlayout'
}
dependencies {

    implementation 'io.github.oneuiproject.sesl:appcompat:1.3.0'
    implementation 'io.github.oneuiproject:design:1.2.2'
    implementation 'io.github.oneuiproject.sesl:material:1.4.0'
    implementation 'io.github.oneuiproject.sesl:viewpager2:1.1.0'
    implementation 'io.github.oneuiproject.sesl:swiperefreshlayout:1.0.0'
    implementation 'io.github.oneuiproject.sesl:recyclerview:1.3.0'
    implementation 'io.github.oneuiproject.sesl:preference:1.1.0'
    implementation 'io.github.oneuiproject.sesl:drawerlayout:1.0.0'
    implementation 'io.github.oneuiproject.sesl:coordinatorlayout:1.0.0'

    implementation 'com.airbnb.android:lottie:5.2.0'
    implementation 'io.github.oneuiproject:icons:1.0.1'
}

com.google.android.material.button.MaterialButton

Hello!!!

Can I use <com.google.android.material.button.materialButton> when configuring xml? This is where the error occurs.

Error does not occur when changing to <androidx.appcompat.widget.AppCompatButton> in xml configuration.

Jetpack Compose version

Hello, I would like to suggest a Jetpack Compose version of the library, as Jetpack Compose is a modern toolkit for building native Android UI. It would be great to have a UI kit or components library of the One UI for Jetpack Compose implementation. Thank you for your consideration.

java.lang.IllegalStateException: item_layout.xml is not annotated as @Input

Hello!!!

I want to apply oneui-core / sesl to my project.

So I am testing with oneui-design samples.

The downloaded oneui-design samples project is installed normally. Through this, I fully understand how to use oneui-core/sesl.

However, the following error occurs when I implement a common module that I normally use in the oneui-design sample project.

  • java.lang.IllegalStateException: item_layout.xml is not annotated as @input

Have you ever experienced such an error?

I need your advice to solve these errors.

�Please review it.

how to change application color?

in previous sample app i can see that we can change application color with color picker, but in new sample we cant, can you teach me how to change application color with ColorPickerPreference?

<dev.oneuiproject.oneui.preference.ColorPickerPreference
            android:key="colorPicker"
            android:title="رنگ برنامه"
            android:summary="تغییر رنگ برنامه"
            android:defaultValue="#0381FE"
            app:showAlphaSlider="true" />

and this

override fun onPreferenceChange(preference: Preference?, newValue: Any?): Boolean {
        
        val colorPicker = findPreference<Preference>("colorPicker") as ColorPickerPreference?
        when (preference!!.key) {
           
            "colorPicker" ->{
            }
        }
        return false
    }

how we can save and load color?

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.