I already tried it, not work…
Aaaaaand it’s not work too… yeah…
ion-item {
--border-width: 0;
}
I already tried it, not work…
Aaaaaand it’s not work too… yeah…
ion-item {
--border-width: 0;
}
You can use ionic app flow to automate the updates of your app.
You wrote asking for help to ion-button but you share here ion-item
What you need to make? Button with border-radius?
Share you html code of you element, or write more information about what you need to make.
ion-button border-radius and ion-item border-width
ion-button params: color=“success” expand=“full” size=“large”
ion-item is just a simple ion-item
none of them work
Try using !important.
ion-item{
--border-width:10px!important;
}
Share you html code of you element. for example
<ion-item color="warning" class="btitle2" *ngIf="i.productos==null">
<ion-label (click)="dat=!dat">
{{i.descripcion}}
</ion-label>
<span class="vermas_genericos" (click)="genericos(i)">
ver mas <ion-icon name="arrow-round-forward"></ion-icon>
</span>
</ion-item>
that to be able to understand a little more because it doesn’t work for you to see if that’s how you have it organized
ion-menu {
ion-content {
ion-item {
text-transform: uppercase;
font-size: 0.9em;
font-weight: 500;
--border-width: 0 !important; // just this is what not work
}
}
}
<ion-list>
<ion-menu-toggle auto-hide="false" *ngFor="let p of appPages">
<ion-item *ngIf="p.auth === undefined || p.auth === null || isAuthenticated == p.auth" (click)="onClickMenu(p)">
<ion-icon slot="start" [name]="p.icon" color="primary"></ion-icon>
<ion-label>
{{p.title}}
</ion-label>
</ion-item>
</ion-menu-toggle>
</ion-list>
And the button:
ion-button {
--border-radius: 10px;
<ion-button color="success" expand="full" size="large" (click)="onLoginSelect()">
Login
</ion-button>
Hmm… How can I hide that line?
I think button with expand=“full” is not edited by border-radius.
What line? of the ion-item ?
Yes:
Sorry to hear you lost your signing key. Unfortunately, once it is lost there is nothing that can be done to recreate it. Since you can not sign the app with the same key, it can not be updated locally nor on the Google Play Store. You have to create a new app id and new store listing. The old app is now an orphan.
That is a --inner-border-width
try this.
ion-item{
--inner-border-width:0px!important;
}
Updated to 4.11.8 from 4.11.5.
This seems to solve the issue for me on Samsung Galaxy Tab Active 2.
You need ngModel and reference by id or position of you array to select list item of you element by click.
The UI didn’t scale well on small screen-dimensional phones and modified the whole user interface when an app set’s “Huge” accessibility choices looked stupid.
What I did was put the following code below in my BaseActivity (an Activity class that all my activities extend from)
public void adjustFontScale(Configuration configuration) {
if (configuration.fontScale > 1.30) {
LogUtil.log(LogUtil.WARN, TAG, "fontScale=" + configuration.fontScale); //Custom Log class, you can use Log.w
LogUtil.log(LogUtil.WARN, TAG, "font too big. scale down..."); //Custom Log class, you can use Log.w
configuration.fontScale = (float) 1.30;
DisplayMetrics metrics = getResources().getDisplayMetrics();
WindowManager wm = (WindowManager) getSystemService(WINDOW_SERVICE);
wm.getDefaultDisplay().getMetrics(metrics);
metrics.scaledDensity = configuration.fontScale * metrics.density;
getBaseContext().getResources().updateConfiguration(configuration, metrics);
}
}
And called it right after my super.onCreate()
like so
adjustFontScale(getResources().getConfiguration());
What this code does is identify whether the user sets its font scale to more than 1.30f (1.30f is “large” on Note 5 but probably varies somewhat from one device to the next). If your user sets your font too big (“Extra Large,” “Huge”…) we just size the app to “Large.”
Other Tip:
You can set their width / height with sp instead of classical dp if you want certain layouts to scale with your custom fonts ( weird font text) (say, a Relative Layout that is used to build backdrop to your fonts). The layout changes with the fonts on your application when a user changes their font size. Nice little trick.-Nice little trick.
I am having the same issue, please post the solution to this. I want to get the selectionStart from an ion-textarea when a button is clicked.
Thanks
Joel Stevick
Thank you!
The ion-button border-radius works with expand=“block”
Just with expand=“full” not works
Thanks for help!
Ye i told you that.
Don’t forget mark to solve.
You are welcome.