danoz73 / qustomdialog Goto Github PK
View Code? Open in Web Editor NEWa quick custom android dialog project
License: Apache License 2.0
a quick custom android dialog project
License: Apache License 2.0
Hi danoz73,
can you add AppCompat compatibility for this library?
Edit:
I have forked this project and added the support for AppCompat. You can find it here https://github.com/devilmac/QustomDialog
Hi,
I have been testing your dialog and it's a nice work but i have found an issue.
When you use the method .setItems, to build a dialog with a list of items to choose, the list appear before the header.
Cheers.
If you inflate i.e. an TextView or a CheckBox and then do setView
on the dialog, the title is missing.
I create a QustomDialog and then I use setContentView to inflate a new layout, which contains a ListView.
How can I reach that ListView?
final QustomDialogBuilder chooseDeliveryCustomerDialog = new QustomDialogBuilder(getActivity());
chooseDeliveryCustomerDialog.setCustomView(R.layout.custom_add_associate, getActivity());
final AlertDialog dialog = chooseDeliveryCustomerDialog.create();
ListView customerList = (ListView) dialog.findViewById(R.id.custom_associate_listView);
This are the steps I do.
With every item dialog.findViewById(...) works fine, but with ListView it gives NullPointer.
It's a nice example and good base, but it's hard to believe that you made the only accessible API to accept colors as hash-strings.
What's wrong with the Android-style int
(0xFF335566
) colors (android.graphics.Color
) or just color resources (R.color.accent
)?
I set the ContentView of a QustomDialog with a ListView, but when I scroll down, the last element isn't showing properly.
My layout is:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="600dp"
android:layout_height="400dp"
android:orientation="vertical">
<ListView
android:id="@+id/dialog_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbarStyle="insideOverlay"
android:dividerHeight="1dp" />
</LinearLayout>
is there something missing?
Could you help with the setCancelable(Boolean) function ?
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.