-
-
Notifications
You must be signed in to change notification settings - Fork 505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to hide country name code ? #60
Comments
Definitely you can do it. Please check
https://github.com/hbb20/CountryCodePickerProject/blob/master/README.md#9-hide-country-name-code
.
…On Fri, 2 Jun 2017 at 11:55, zaheerpoei ***@***.***> wrote:
i want to show only phone code. there is a method showflag(boolean) that
hides the flag if pass false to this. Like wise i want to hide country name
code so there left only phone code. so there should be option to hide
country code. Please tell me how can i hide country code. Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#60>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AEsN6JwIUi6zL_EBPLxNM3BiW7xdke_3ks5r_6q9gaJpZM4Nt4OL>
.
|
thanks brother |
good work keep it up |
can we align the text as centre after selecting value of spinner ?? |
You want to support full width right?
Right now I'm working on it. I will notify once it's implemented.
…On Fri, 2 Jun 2017 at 12:21, zaheerpoei ***@***.***> wrote:
can we align the text as centre after selecting value of spinner ??
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#60 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEsN6CR7tQfc_g_LT-TsYuehgDgnRlEMks5r_7ECgaJpZM4Nt4OL>
.
|
after selecting the value from dropdown it shows the selected value in spinner which is left aligned i want to align this to centre. thats it |
Can you send current screen and sketch of expected result?
…On Fri, 2 Jun 2017 at 12:55, zaheerpoei ***@***.***> wrote:
after selecting the value from dropdown it shows the selected value in
spinner which is left aligned i want to align this to centre. thats it
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#60 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEsN6FiiaNMSciCepiplC58z86xJyahFks5r_7jmgaJpZM4Nt4OL>
.
|
If you can send me xml, atleast of between name edit text and button part,
I will try to set it.
If something required to be changed in library, I can take care in next
version.
…On Fri, 2 Jun 2017 at 13:10, zaheerpoei ***@***.***> wrote:
[image: screenshot_2017-06-02-12-34-19 1]
<https://cloud.githubusercontent.com/assets/16101169/26715846/a9837bb4-4790-11e7-9f0f-e1daa9f89b84.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#60 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEsN6HLohNYR_eAh_ho1PsgxOJ1zOs66ks5r_7xzgaJpZM4Nt4OL>
.
|
|
If you want to use weight sum then you should use width = 0. But still this approach is not the best. Just replace your l1 linear layout with
|
Hi, Is it possible to restrict some countries not to show in list? Yes, I got the answer.. app:ccp_customMasterCountries="US,IN,NZ,BD,PL,RO,ZW" |
Hi, great library, thanks Is it possible to hide the flags when you open the modal? These flags: https://screencast.com/t/DmUzVJWz9 |
@josuesantamaria , this was recently asked on #189. Currently, there is no option for that. hopefully, we will be releasing new version this weekend with this option. Will that work? |
It sounds great. Thank you very much. Also, would be great if we can have more control over the modal UI, like the width of the modal, put lines between the different options, make modal corners rounded. That kind of stuff, but thanks for your very helpful library. |
Try v2.2.2 and use Regarding your last comment. These requirements are very specific. We might not be able to incorporate it. If you want customized layout simply create a copy of dialog layout with the same name in your layouts directory. You can change style in this copy. Note: do not change/remove id of views. At the run time android will pick your layout file instead of CCP's layout file. Hope this will be helpful. |
It works perfectly! thank you very much and thanks for the information. Very good job! |
Hi @hbb20 I followed your advice about creating a copy of dialog layout, I have this:
Like you can see, I just accommodated some fields and changed the The problem that I'm facing is that even that I changed the hint value, the text is not updated, it seems that the text is overwritten by some piece of code inside the library, Do you know what is happening? Also, I tried to make a copy of country tile to change the text colors, but again, it seems to be overwritten by another piece of code. I would appreciate a lot your help |
Regarding the country tile, I will check and post back. Do you mind creating a new issue as this part is not alligned with original issue. |
Hi @hbb20
There is a option for hiding country name code using
But i want to show only flag and selection arrow and hide country code and country name. I am able to hide country name code but not able to hide country code. How can i do it ? |
What is the version of library you are using?
…On Sat, Mar 2, 2019 at 10:26 shukla12manish ***@***.***> wrote:
Hi @hbb20 <https://github.com/hbb20>
There is a option for flag hiding using
app:showFlag="false"
There is a option for hiding country name code using
app:hideNameCode="true"
*But i want to show only flag and selection arrow and hide country code
and country name. I am able to hide country name code but not able to hide
country code. How can i do it ?*
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#60 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEsN6FrC5YxljJifP4Euj7Q3B9v4SZOXks5vSqYxgaJpZM4Nt4OL>
.
|
@hbb20 I followed the steps given in this link version: 2.0.0
|
@hbb20 I think i have used different library. Can you tell me how to add your library into my project step by step, as i tried to add
but it gave me error. |
For integration, https://github.com/hbb20/CountryCodePickerProject/wiki/How-to-integrate-into-your-project should be helpful. You get some problem integrating that, feel free to comment back. We will be happy to help you with it. |
@hbb20 Hi thanks for the reply but i am still stuck on 3 and 4th step in implementing the library. Add CCP object in Activity / Fragment Bind CCP from layout where should i place these codes ? after adding dependency i synced but android studio showed me
|
Did you remove |
Hi |
@m7md7sn994 sir, can you please create a new issue with little more explanation about where you want to add padding? |
i want to show only phone code. there is a method showflag(boolean) that hides the flag if pass false to this. Like wise i want to hide country name code so there left only phone code. so there should be option to hide country code. Please tell me how can i hide country code. Thanks
The text was updated successfully, but these errors were encountered: