我正在创建一个应用程序来锁定相机焦点以进行视频录制.我想在没有用户手动调整焦点的情况下将焦点锁定到无限远.这可能吗?谢谢!
我需要根据Android屏幕绑定制作这样的东西,
S M T W T F S
Run Code Online (Sandbox Code Playgroud)
我这样做:
<TextView
android:id="@+id/textView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="45dp"
android:text="S M T W T F S" />
Run Code Online (Sandbox Code Playgroud)
这不能正常工作,不是根据设备屏幕绑定.我需要这样的东西:
<TextView
android:id="@+id/textView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="45dp"
android:text="S""10dp""M""10dp""T""10dp""W""10dp""T""10dp""F""10dp""S""10dp" />
Run Code Online (Sandbox Code Playgroud) 我正在遵循将cocos2d-x中的nextpeer与c ++集成的接下来的指导原则,我已经在项目中复制了所需的框架和类,然后为nextpeer添加了所需的框架,还添加了链接器标志但是有Apple Mach-O链接器错误,这是一个日志:
Undefined symbols for architecture i386:
"_CTFontCopyFullName", referenced from:
-[NSMutableAttributedString(NP_OHCommodityStyleModifiers) npSetTextBold:range:] in Nextpeer(NP_NSAttributedString+Attributes.o)
"_CTFontCreateCopyWithAttributes", referenced from:
___NP_NSAttributedStringByScalingFontSize_block_invoke in Nextpeer(NP_TTTAttributedLabel.o)
"_CTFontCreateCopyWithSymbolicTraits", referenced from:
-[NSMutableAttributedString(NP_OHCommodityStyleModifiers) npSetTextBold:range:] in Nextpeer(NP_NSAttributedString+Attributes.o)
"_CTFontCreateUIFontForLanguage", referenced from:
-[NSMutableAttributedString(NP_OHCommodityStyleModifiers) npSetTextBold:range:] in Nextpeer(NP_NSAttributedString+Attributes.o)
"_CTFontCreateWithFontDescriptor", referenced from:
-[NSMutableAttributedString(NP_OHCommodityStyleModifiers) npSetFontFamily:size:bold:italic:range:] in Nextpeer(NP_NSAttributedString+Attributes.o)
"_CTFontCreateWithName", referenced from:
_NP_NSAttributedStringAttributesFromLabel in Nextpeer(NP_TTTAttributedLabel.o)
-[NSMutableAttributedString(NP_OHCommodityStyleModifiers) npSetFontName:size:range:] in Nextpeer(NP_NSAttributedString+Attributes.o)
"_CTFontDescriptorCreateWithAttributes", referenced from:
-[NSMutableAttributedString(NP_OHCommodityStyleModifiers) npSetFontFamily:size:bold:italic:range:] in Nextpeer(NP_NSAttributedString+Attributes.o)
"_CTFontGetSize", referenced from:
___39+[NP_OHASBasicMarkupParser tagMappings]_block_invoke_3 in Nextpeer(NP_OHASBasicMarkupParser.o)
___NP_NSAttributedStringByScalingFontSize_block_invoke in Nextpeer(NP_TTTAttributedLabel.o)
"_CTFontGetSymbolicTraits", referenced from:
-[NSAttributedString(NP_OHCommodityConstructors) npTextIsBoldAtIndex:effectiveRange:] in Nextpeer(NP_NSAttributedString+Attributes.o)
"_CTFrameGetLineOrigins", referenced from:
-[NP_TTTAttributedLabel …
Run Code Online (Sandbox Code Playgroud)